
#include <scene/line.h>

Line::Line(){
  x1 = 0.0;
  y1 = 0.0;
  x2 = 0.0;
  y2 = 0.0;
}

Line::Line(const Line * rhs){
  x1 = rhs->x1;
  y1 = rhs->y1;
  x2 = rhs->x2;
  y2 = rhs->y2;
}

SceneNode * Line::copy() const {
  return new Line(this);
}

long Line::preDraw(Device * device){
  device->drawLine(x1,y1,x2,y2);
  return 0;
}
